package com.xxadmin.usercenter.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * BCryptPasswordEncoder 加密工具类
 *
 * @author:chenming
 * @date:2018/8/22
 */
public class BCryptPasswordEncoderUtil {

    public static String encoder(String encoder){
        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();

        return bCryptPasswordEncoder.encode(encoder);
    }
}
